<div id="contenedorJornadas">
    <span class="vista">Jornadas</span>
    <br/>
    <br/>
    <div class="tabs">

      <div class="tabs_past">
        <div  class="tab_link selected">
          <a href="<?php echo url_for('@jornada_past') ?>"><div>Pasados</div></a>
        </div>
      </div>

      <div class="tabs_active">
        <div  class="tab_link ">
            <a href="javascript:void(0)"><b>Activos</b></a>
        </div>
      </div>

        <div id="borde">
         <?php echo image_tag('linea2.jpg','size=100%x2') ?>
        </div>
    </div>

    <br />
    <?php if($pager->getNbResults()!=0){ ?>
      <?php foreach($pager->getResults() as $idx => $row){ ?>
        <?php if($idx>0){ ?><div style="width: 100%;"></div><br /><?php } ?>
        <div class="bloques-jornadas">

              <div class="titulo" >
                  <a class="jornadas" href="<?php echo url_for('@jornada_detail?id='.$row->getId()) ?>" ><?php echo html_entity_decode($row->getName()); ?></a>
                  <span class="fecha"><?php echo html_entity_decode($row->getFechajornada()); ?></span>
              </div>

              <div class="resumen" >
                  <span><?php echo html_entity_decode($row->getResumen()); ?></span>

                  <a href="<?php echo url_for('@jornada_detail?id='.$row->getId()) ?>"><span><?php echo image_tag('icono.png','size=14x18') ?> &nbsp;&nbsp;&nbsp;ver jornada</span></a>
              </div>
        </div>
      <?php } ?>
    <?php }else{ ?>
      No existen jornadas activos
    <?php } ?>
    <br />
    <?php if ($pager->haveToPaginate()): ?>

    <div class="color_pag">

        <span> Paginas <?php echo $pagina  ?> de <?php  echo $max ?></span>
        <?php if($pager->getPreviousPage()!=$pager->getPage()){ ?>
        <div class="izq">
            <a href="?page=<?php echo $pager->getPreviousPage() ?>">
               <?php echo image_tag('btn_izq.png','size=14x14') ?></a>
          </div>
        <?php } ?>
        <?php foreach ($pager->getLinks() as $page): ?>
            <?php if ($page == $pager->getPage()): ?>
              <div  class="imagen_pag" >
                  <span><?php echo $page ?></span>
              </div>
            <?php else: ?>
              <div class="next"  >
                <a href="?page=<?php echo $page ?>">
                   <?php echo $page ?>
                </a>
              </div>

            <?php endif; ?>
        <?php endforeach; ?>
        <?php if($pager->getNextPage()!=$pager->getPage()){ ?>
          <div style="width: 30px;vertical-align: middle;display: inline-block;">
            <a href="?page=<?php echo $pager->getNextPage() ?>">
               <?php echo image_tag('btn_der.png','size=14x14') ?></a>
          </div>
        <?php } ?>
      </div>
    <?php endif; ?>
</div>